#ifndef UPDATESCORENETWORKEVENT_H_
#define UPDATESCORENETWORKEVENT_H_

#include "NetworkEvent.h"

class UpdateScoreNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        int textId;
        int score;
    };

    struct Message
    {
        Header header;
        Data data;
    };

    UpdateScoreNetworkEvent(int textId, int score);
    UpdateScoreNetworkEvent(const Header& header, const Data& data);
    virtual ~UpdateScoreNetworkEvent();

    virtual void visitScore(Score* score) const;

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

private:
    Message message;
};

#endif
